<template>
  <div class="content-box">
    <div class="title">{{title}}</div>
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: 'ContentBox',
    props: {
      title: {
        type: String,
        default: ''
      }
    }
  }
</script>

<style lang="scss" scoped>
  .content-box {
    position: relative;
    box-sizing: border-box;
    padding: 36px 16px 20px;
    .title {
      position: absolute;
      left: 50%;
      top: 4px;
      transform: translate(-50%, 0);
      font-size: 14px;
      font-weight: bold;
      color: #01D8FD;
    }
  }
</style>
